#ifndef _RC4_H_
#define _RC4_H_

/**
 * @brief rc4_crypt 
 * 
 * @param key crypt key,at lease 1 byte
 * @param key_len key length
 * @param data crypt data
 * @param data_len data length
 * @return int 0 for success , else false
 * @note encrypt and decrypt using the same function. after encrypt, had better use base64 encode ciphertext.
 *       The data length is the same before encryption and decryption.
 */
int rc4_crypt(unsigned char*key,int key_len, unsigned char*data, int data_len);

#endif  /* _RC4_H_ */